package Homework5;

import java.util.Date;

public class SmartTV extends TV{
    private int memorySize;

    public int getMemorySize() {
        return memorySize;
    }

    public void setMemorySize(int memorySize) {
        this.memorySize = memorySize;
    }

    public SmartTV(){}

    public SmartTV(String brand, Date productDate, int memorySize){
        super(brand, productDate);
        this.memorySize = memorySize;
    }

    @Override
    public String toString(){
        return "TV: brand = " + getBrand() +
                " productDate = " + getProductDateString() +
                " channel = " + getChannel() +
                " volumnLevel = " + getVolumnLevel() +
                " memorySize = " + getMemorySize();
    }
}
